package com.atguigu.dao;

import com.atguigu.pojo.TravelItem;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * @author Eric
 * @Create 2020-09-15  15:56
 * @Version project-workspace-0912
 **/
public interface TravelItemDao {

    List<TravelItem> findAll();

    //编辑
    void edit(TravelItem travelItem);

    //根据id查找
    TravelItem findById(Integer id);

    //添加
    void add(TravelItem var1);

    //分页查询
    Page<TravelItem> findPage(String page);

    //删除
    void deleteById(Integer id);

    //根据id查询TravelItem关联其他表的个数
    long findCountByTravelItemItemId(Integer id);

    List<TravelItem> findTravelItemListById(Integer id);
}
